<template>
  <el-dialog title="品质得分阶段锁定" :visible.sync="show" :close-on-click-modal="false" width="90%">
    <lock-merge-list ref="LockMergeList" />
  </el-dialog>
</template>
<script>
import LockMergeList from './index'
export default {
  name: 'ShowMerge',
  components: { LockMergeList },
  props: { value: { type: Boolean, default: false } },
  computed: {
    show: {
      get() {
        return this.value
      },
      set(val) {
        this.$emit('input', val)
      }
    }
  },
  watch: {
    show(val) {
      if (!val) return
      this.$nextTick(() => this.$refs.LockMergeList?.resetQuery())
    }
  }
}
</script>
